:root {
    --background-color: #2c3e50;
    --border-color: #7591AD;
    --text-color: #34495e;
    --color1: #EC3E27;
    --color2: #fd79a8;
    --color3: #0984e3;
    --color4: #00b894;
    --color5: #fdcb6e;
    --color6: #e056fd;
    --color7: #F97F51;
    --color8: #BDC581;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    /* background-color: var(--background-color); */
    /* 这里实现一半是白色一般是蓝色的背景效果
    关键点在50%，代表整个空间的50%，而不是颜色或者其他什么
    */
    background-image: linear-gradient(to bottom, #fff 50%, #6dd6ff 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif, Arial, 'Microsoft Yahei';
}

.containter {
    width: 80%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
    transform-style: preserve-3d;
}

.containter .card {
    flex-shrink: 0;
    flex-flow: 0;
    width: 120px;
    height: 160px;
    background-color: #fff;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 3px var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.containter h1 {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.containter .card:hover h1 {
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: var(--color3);
    border-radius: 0;
}
.containter:hover .card{
    translate: .5s;
    transform: rotateY(30deg);
}
.containter .card:hover{
    translate: .5s;
    transform: rotateY(0deg);
}
.containter .card:hover~.card{
    translate: .5s;
    transform: rotateY(-30deg);
}